package com.tairanchina.md.meeting.constants;

import java.io.Serializable;

/** 
 * @author yinjie 
 * @version 创建时间：2015年10月5日 下午7:21:59 
 * 类说明 
 */
public class BaseRes implements Serializable
{

    /**
     * 
     */
    private static final long serialVersionUID = -5172138375687562376L;
    
    private Error error;
    private transient int code;
    private transient String description;
    
    public BaseRes()
    {
        this.error = new Error();
    }
    
    public int getCode()
    {
        return code;
    }

    public void setCode(int code)
    {
        this.code = code;
        error.setCode(code);
    }

    public String getDescription()
    {
        return description;
    }

    public void setDescription(String description)
    {
        this.description = description;
        error.setDescription(description);
    }

    public Error getError()
    {
        return error;
    }

    public void setError(Error error)
    {
        this.error = error;
    }
    
    public class Error
    {
        private int code;
        private String description;
        public int getCode()
        {
            return code;
        }
        public void setCode(int code)
        {
            this.code = code;
        }
        public String getDescription()
        {
            return description;
        }
        public void setDescription(String description)
        {
            this.description = description;
        }
    }
}